package com.friends.digitpic.test.service.impl;

import javax.annotation.Resource;

import org.jeecgframework.minidao.pojo.MiniDaoPage;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.stereotype.Component;
import com.friends.digitpic.test.dao.AccountOrgDao;
import com.friends.digitpic.test.entity.AccountOrgEntity;
import com.friends.digitpic.test.service.AccountOrgService;

/**
 * 描述：机构账户
 * @author: jiangge xia
 * @since：2018年08月18日 11时13分44秒 星期六 
 * @version:1.0
 */

@Transactional
@Component
public class AccountOrgServiceImpl implements AccountOrgService {

	@Resource(name = "accountOrgDao")
	private AccountOrgDao accountOrgDao;


	public AccountOrgEntity getAccountOrg(String orgaccountid) {
		return accountOrgDao.get(orgaccountid);
	}

	public int updateAccountOrg(AccountOrgEntity accountOrg) {
		return accountOrgDao.update(accountOrg);
	}

	public void insertAccountOrg(AccountOrgEntity accountOrg) {
		accountOrgDao.insert(accountOrg);
		
	}

	public MiniDaoPage<AccountOrgEntity> getAccountOrgAll(AccountOrgEntity accountOrg, int page, int rows) {
		return accountOrgDao.getAll(accountOrg, page, rows);
	}

	public void deleteAccountOrg(AccountOrgEntity accountOrg) {
		accountOrgDao.delete(accountOrg);
		
	}
}
